/*     */ package tfhka;
/*     */ 
/*     */ public class S3PrinterData
/*     */ {
/*     */   private int typeTax1;
/*     */   private double tax1;
/*     */   private int typeTax2;
/*     */   private double tax2;
/*     */   private int typeTax3;
/*     */   private double tax3;
/*     */   private int[] systemFlags0to19;
/*     */ 
/*     */   public S3PrinterData(String trama)
/*     */   {
/*  30 */     if ((trama != null) && (trama.length() >= 57))
/*     */     {
/*  32 */       setTypeTax1(Integer.parseInt(trama.substring(2, 3)));
/*  33 */       double valor = Double.parseDouble(trama.substring(3, 5)) + Double.parseDouble(trama.substring(5, 7)) / 100.0D;
/*  34 */       setTax1(valor);
/*  35 */       setTypeTax2(Integer.parseInt(trama.substring(7, 8)));
/*  36 */       valor = Double.parseDouble(trama.substring(8, 10)) + Double.parseDouble(trama.substring(10, 12)) / 100.0D;
/*  37 */       setTax2(valor);
/*  38 */       setTypeTax3(Integer.parseInt(trama.substring(12, 13)));
/*  39 */       valor = Double.parseDouble(trama.substring(13, 15)) + Double.parseDouble(trama.substring(15, 17)) / 100.0D;
/*  40 */       setTax3(valor);
/*     */ 
/*  42 */       this.systemFlags0to19 = new int[20];
/*  43 */       int a = 17;
/*  44 */       int b = 19;
/*  45 */       int ite = 0;
/*  46 */       while (ite < 20)
/*     */       {
/*  48 */         this.systemFlags0to19[ite] = Integer.parseInt(trama.substring(a, b));
/*     */ 
/*  50 */         a = b;
/*  51 */         b += 2;
/*     */ 
/*  53 */         ite++;
/*     */       }
/*  55 */       setSystemFlags0to19(this.systemFlags0to19);
/*     */     }
/*     */   }
/*     */ 
/*     */   public int getTypeTax1() {
/*  60 */     return this.typeTax1;
/*     */   }
/*     */ 
/*     */   public double getTax1() {
/*  64 */     return this.tax1;
/*     */   }
/*     */ 
/*     */   public int getTypeTax2() {
/*  68 */     return this.typeTax2;
/*     */   }
/*     */ 
/*     */   public double getTax2() {
/*  72 */     return this.tax2;
/*     */   }
/*     */ 
/*     */   public int getTypeTax3() {
/*  76 */     return this.typeTax3;
/*     */   }
/*     */ 
/*     */   public double getTax3() {
/*  80 */     return this.tax3;
/*     */   }
/*     */ 
/*     */   public int[] getSystemFlags0to19()
/*     */   {
/*  86 */     return this.systemFlags0to19;
/*     */   }
/*     */ 
/*     */   private void setTypeTax1(int typeTax1) {
/*  90 */     this.typeTax1 = typeTax1;
/*     */   }
/*     */ 
/*     */   private void setTax1(double tax1) {
/*  94 */     this.tax1 = tax1;
/*     */   }
/*     */ 
/*     */   private void setTypeTax2(int typeTax2) {
/*  98 */     this.typeTax2 = typeTax2;
/*     */   }
/*     */ 
/*     */   private void setTax2(double tax2) {
/* 102 */     this.tax2 = tax2;
/*     */   }
/*     */ 
/*     */   private void setTypeTax3(int typeTax3) {
/* 106 */     this.typeTax3 = typeTax3;
/*     */   }
/*     */ 
/*     */   private void setTax3(double tax3) {
/* 110 */     this.tax3 = tax3;
/*     */   }
/*     */ 
/*     */   private void setSystemFlags0to19(int[] systemFlags0to19) {
/* 114 */     this.systemFlags0to19 = systemFlags0to19;
/*     */   }
/*     */ }

/* Location:           C:\Users\javaOne\Documents\TfhkaJava.jar
 * Qualified Name:     tfhka.S3PrinterData
 * JD-Core Version:    0.6.2
 */